package com.lagou.pattan;

/**
 * @Authther: mrwu
 * @date:2021/3/24-03
 * @Description:com.lagou.pattan
 */
public class BuyGoods {
    private String goods;
    private Double price;
    private double finalprice;
    private String desc;

    public BuyGoods(String goods, Double price, double finalprice, String desc) {
        this.goods = goods;
        this.price = price;
        this.finalprice = finalprice;
        this.desc = desc;
    }

    public double calculate(String discount){
//        if ("85".equals(discount)){
//
//        }

        return 21;
    }

}
